/**
 * Copyright 2009-2011 xiaonei.com All right reserved.
 * This software is the confidential and proprietary information of Xiaonei.com ("Confidential Information"). 
 * You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement you entered into with Xiaonei.com.
 * Create by XiaoNeiAntiSpamTeam
 *
 */

package com.xiaonei.testice.testicebox.service;

import Ice.Current;
import Ice.Properties;

import com.xiaonei.testice.testicebox._PrinterDisp;

/**
 * @ClassName: PrinterI
 * @Description: printer实现类
 * @author shaohui.liu shaohui.liu@opi-corp.com
 * @date Feb 20, 2010 10:52:20 AM
 * 
 */
public class PrinterI extends _PrinterDisp {

    private int index;

    public PrinterI(Properties properties) {
        this.index = properties.getPropertyAsInt("Index");
    }

    /* (非 Javadoc)
     * <p>Title: printString</p>
     * <p>Description: </p>
     * @param message
     * @param current
     * @see com.xiaonei.testice.testicebox._PrinterOperations#printString(java.lang.String, Ice.Current)
    */
    @Override
    public void printString(String message, Current current) {
        System.out.println("Service" + index + ":" + message);
    }
}
